package juc.reentrantlock;

import java.util.concurrent.locks.ReentrantLock;

public class ReentrantLockTest {
    private static ReentrantLock lock = new ReentrantLock(true);

    public static void main(String[] args) {
        lock.lock();
        System.out.println("locked");
        lock.lock();
        lock.unlock();
        System.out.println("unlock");
    }
}
